using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace TaugeLibrary.UserControls
{
    public class ExtendedMaskedTextBox:System.Windows.Forms.MaskedTextBox
    {

        public ExtendedMaskedTextBox():base()
        {
            this.TextMaskFormat = System.Windows.Forms.MaskFormat.ExcludePromptAndLiterals;
        }
        protected override void OnKeyDown(System.Windows.Forms.KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
            {
                SendKeys.Send("{tab}");
                e.Handled = true;
            }

            base.OnKeyDown(e);            
        }

    }
}
